﻿using Core.Domain.Entities;
using Core.Migrations.Extensions;
using FluentMigrator;

namespace Infrastructure.Persistence.Migrations.Users;

[Migration(202511021701)]
public class AddSignatureColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(typeof(User).GetTableName())
          .InSchema(SchemaNames.Identity)
          .AddColumn(MigrationExpressions.ColumnNameFor<User>(nameof(User.Signature)))
          .AsString(500)
          .Nullable()
          .WithColumnDescription("个性签名");
    }
}
